Skip to content

Fix: Bind Next.js to 0.0.0.0 instead of localhost#32

Merged
BigSimmo merged 1 commit into
mainfrom
railway/code-change-VVmaRR
Jun 14, 2026
Merged

Fix: Bind Next.js to 0.0.0.0 instead of localhost#32
BigSimmo merged 1 commit into
mainfrom
railway/code-change-VVmaRR

Conversation

@railway-app

@railway-app railway-app Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Problem

The Next.js app was spawned with --hostname localhost, binding it to 127.0.0.1 only. Railway's healthcheck probe connects from outside the container, so it could never reach the app, causing every deployment to fail.

Solution

Changed the --hostname argument in scripts/dev-free-port.mjs from "localhost" to "0.0.0.0", so Next.js listens on all network interfaces. This allows Railway's healthcheck and external traffic to reach the app.

Changes

  • Modified scripts/dev-free-port.mjs

Generated by Railway

@BigSimmo
BigSimmo merged commit ce09f76 into main Jun 14, 2026
8 of 11 checks passed
@BigSimmo
BigSimmo deleted the railway/code-change-VVmaRR branch June 14, 2026 09:36
BigSimmo added a commit that referenced this pull request Jul 22, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
BigSimmo added a commit that referenced this pull request Jul 22, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
BigSimmo added a commit that referenced this pull request Jul 22, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
BigSimmo added a commit that referenced this pull request Jul 25, 2026
Resolve docs/outstanding-issues.md by keeping main's ledger and re-applying closures for #9 #10 #32 #41 #63 into Resolved/archive.

Co-authored-by: Cursor <cursoragent@cursor.com>
cursor Bot pushed a commit that referenced this pull request Jul 25, 2026
* docs: close ledger #9 #10 #32 #41 #63

Record ops-only /api/jobs decision, coming-soon audit, governance
ranking REFUTED guardrail, Factsheets reading-model brief, and Current
Clinical Work privacy/persistence brief. Archive the five open items;
no RAG or application behavior changes.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* fix(ci): prettier ledger docs and drop stale PR_POLICY_BODY

Static PR checks failed on Prettier for five docs files. Also remove
leftover PR_POLICY_BODY.md from merged #1134 so Sync PR policy body
stops overwriting this docs PR description.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* docs: record PR #1175 review ledger outcome

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* chore: restore PR #1175 description via PR_POLICY_BODY sync

Temporary template so CI Sync PR policy body replaces the polluted
search-performance description left from merged #1134.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* chore: remove temporary PR_POLICY_BODY after description sync

Keep the corrected PR #1175 description without leaving the sync
template on the branch for merge to main.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* docs: supersede PR #1175 review ledger after body sync

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* style: prettier-format outstanding-issues after ledger merge

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant